// -----------------------------------------------------------
// Game Framework
// Copyright © 2024-2024 deadcycle. All rights reserved.
// Homepage: https://deadcycle.gitee.io
// Feedback: deadcycle@163.com
// -----------------------------------------------------------

using UnityEngine;

namespace UIWidget.Editor
{
    public static class GUIStyleHelper
    {
        private static GUIStyle s_Caption;

        /// <summary>
        /// 说明文字样式。
        /// </summary>
        public static GUIStyle Caption =>
            s_Caption ??= new GUIStyle
            {
                richText = true,
                alignment = TextAnchor.MiddleCenter,
                normal = { textColor = Color.green },
            };
    }
}